Skip to content

Conversation

@sundarshankar89
Copy link
Collaborator

@sundarshankar89 sundarshankar89 commented Jun 3, 2025

Changes

What does this PR do?

This introduces the intial version of CLI

Relevant implementation details

Caveats/things to watch out for when reviewing:

Linked issues

~ ❯ databricks labs lakebridge execute-database-profiler --help                                                                                                                                                 26s
Profile the source system database

Usage:
  databricks labs lakebridge execute-database-profiler [flags]

Flags:
  -h, --help                 help for execute-database-profiler
      --source-tech string   (Optional) The technology/platform of the sources to Profile

Global Flags:
      --debug            enable debug logging
  -o, --output type      output type: text or json (default text)
  -p, --profile string   ~/.databrickscfg profile
  -t, --target string    bundle target to use (if applicable)
~ ❯ databricks labs lakebridge execute-database-profiler --source-tech mssql
12:24:59    ERROR [d.labs.lakebridge] Only following source system is supported ['synapse']
12:24:59    ERROR [d.l.lakebridge.execute-database-profiler] ValueError: Invalid source technology mssql


~ ❯ databricks labs lakebridge execute-database-profiler --source-tech Synapse
[UPGRADE ADVISED] Newer lakebridge version was released 12 days ago. Please run `databricks labs upgrade lakebridge` to upgrade: feature/profiler_entry_point -> v0.10.11
12:25:15    ERROR [d.l.lakebridge.execute-database-profiler] ValueError: Connection details not found. Please run `databricks labs lakebridge configure-database-profiler` to set up connection details for synapse.
~
~ ❯ databricks labs lakebridge execute-database-profiler
Select the source technology
[0] synapse
Enter a number between 0 and 0: 0
12:32:50    ERROR [d.l.lakebridge.execute-database-profiler] ValueError: Connection details not found. Please run `databricks labs lakebridge configure-database-profiler` to set up connection details for synapse.

Functionality

  • added relevant user documentation
  • added new CLI command
  • modified existing command: databricks labs remorph ...
  • ... +add your own

Tests

  • manually tested
  • added unit tests
  • added integration tests

Copy link
Collaborator

@gueniai gueniai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@goodwillpunning goodwillpunning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gueniai gueniai enabled auto-merge November 7, 2025 17:07
@gueniai gueniai added this pull request to the merge queue Nov 7, 2025
github-merge-queue bot pushed a commit that referenced this pull request Nov 7, 2025
### What does this PR do?

This PR adds a `create-profiler-dashboard` CLI command. Once executed,
the command will deploy a profiler summary as a Databricks dashboard to
the user's workspace.

### Relevant implementation details

The `create-profiler-dashboard` CLI command performs 3 actions:
1. Uploads the profiler extract to a UC volume
2. Deploys a workflow for ingesting the extract file and converting to
Delta tables
3. Deploys a summary dashboard based on the source technology that was
profiled

### Caveats/things to watch out for when reviewing:

The job can be uninstalled when a Lakebridge `uninstall` command is
executed.

### Linked issues

Compliments #1623

### Functionality

- [ ] added relevant user documentation
- [X] added new CLI command
- [ ] modified existing command: `databricks labs lakebridge ...`
- [ ] ... +add your own

### Tests

- [X] manually tested
- [ ] added unit tests
- [ ] added integration tests

---------

Co-authored-by: Guenia Izquierdo <[email protected]>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Nov 7, 2025
@gueniai gueniai added this pull request to the merge queue Nov 7, 2025
Merged via the queue into main with commit 27a41a5 Nov 7, 2025
9 of 10 checks passed
@gueniai gueniai deleted the feature/profiler_entry_point branch November 7, 2025 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat/cli actions that are visible to the user feat/profiler Issues related to profilers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants